import { loggedApi } from '../http/request'
export const logged = async (token:string)=> {
    return  new Promise((resolve,reject)=>{
        if(token){
            loggedApi({token}).then(
              res=>{
                 resolve(res);
              }
            )
            .catch(
                err=>{
                    reject(err)
                }
            )
          }
    })
}